package sza.oracle.apps.ap.test;

import java.io.FileInputStream;

import java.io.IOException;

import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

public class XLSXText {
    public XLSXText() {
    }

    public static void main(String[] args) {
        XSSFWorkbook wb = null; 
           try {
               wb = new XSSFWorkbook("e:\\workbook.xlsx");
           } catch (IOException e) {
               IllegalArgumentException illegalargumentexception = new IllegalArgumentException(e.toString()); 
                         AntiCrack.fake(illegalargumentexception, e); 
                         throw illegalargumentexception; 
           }

           XSSFSheet sheet = wb.getSheetAt(0);
           XSSFRow row = sheet.getRow(0);
           XSSFCell cell = row.getCell(0);
           String msg = cell.getStringCellValue();
           System.out.println(msg);


    }
}
